<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>getJSON()方法</title>
</head>
<body>
    <button>按钮</button>
    <script src="./js/jquery-1.12.4.js"></script>
    <script>
      $(function(){
          $.getJSON('data/server.json',{name:'张无忌'},function(r){
            console.log(r);
          })
      })
    </script>
</body>
</html>